<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="MyAccountCtrl"></ul>
<div class="set_box">
    <h1 class="set_title">{{language.TIPS_MY_PERFORMANCE}}<!--业绩晴雨表--><i class="help" id="help_performance" ng-click="help_prompt(language.HELP_PROMPT_PERFORMANCE, 'help_performance')"></i><span class="title_btn_group"></span></h1>
    <div class="set_cont myaccount">
        <div class="performance">
            <p class="condition" ng-show="dianzhang == 1">
                <button ng-click="search();" >
                    {{language.ACT_SEARCH}}<!--获取-->
                </button>			
                <input type="month" class="date" ng-model="cur.date"  />
            </p>
            <table ng-show="dianzhang == 1">
                <tr>
                    <th>{{language.TIPS_ANALYSIS_PROJECT}}<!--分析项目--></th>
                    <th>{{language.TIPS_PRESET_TARGET}}<!--预设指标--></th>
                    <th>{{language.TIPS_ACTUAL_INDICATORS}}<!--实际业绩--></th>
                    <th>{{language.TIPS_RATE}}<!--完成比例--></th>
                    <th>{{language.TIPS_UNFINISHED_INDICATORS}}<!--未完成业绩--></th>
                    <th>{{language.TIPS_INVENTORY_OPERATE}}<!--操作--></th>
                </tr>
                <tr>
                    <td>{{language.TIPS_CURRENT_MONTH_INDICATORS}}<!--本月业绩--></td>
                    <td>{{shop_month.indicators|number:2}}</td>
                    <td>{{shop_month.actual|number:2}}</td>
                    <td>{{shop_month.rate}}</td>
                    <td>{{shop_month.unfinished|number:2}}</td>
                    <td><button ng-click="set_dialog('shop_month_set');">{{language.TIPS_SET}}<!--设置--></button></td>
                </tr>
                <tr>
                    <td>{{language.TIPS_CURRENT_WEEK_INDICATORS}}<!--本周业绩--></td>
                    <td>{{shop_week.indicators|number:2}}</td>
                    <td>{{shop_week.actual|number:2}}</td>
                    <td>{{shop_week.rate}}</td>
                    <td>{{shop_week.unfinished|number:2}}</td>
                    <td><button ng-click="set_dialog('shop_week_set');">{{language.TIPS_SET}}<!--设置--></button></td>
                </tr>
                <tr>
                    <td>{{language.TIPS_TODAY_INDICATORS}}<!--今日业绩--></td>
                    <td>{{shop_day.indicators|number:2}}</td>
                    <td>{{shop_day.actual|number:2}}</td>
                    <td>{{shop_day.rate}}</td>
                    <td>{{shop_day.unfinished|number:2}}</td>
                    <td><button><a href="#/myaccount/dialog/shop_day_set">{{language.TIPS_SET}}<!--设置--></a></button></td>
                </tr>
            </table>
            <table ng-show="dianzhang == 1">
                <tr>
                    <th>{{language.TIPS_RANK}}<!--排名--></th>
                    <th>{{language.TIPS_CASHIER_SHOPPING_GUIDE}}<!--导购员--></th>
                    <th>{{language.TIPS_CURRENT_MONTH_TARGET}}<!--当月指标--></th>
                    <th>{{language.TIPS_CURRENT_MONTH_INDICATORS}}<!--当月业绩--></th>
                    <th>{{language.TIPS_RATE}}<!--完成比例--></th>
                    <th>{{language.TIPS_UNFINISHED_INDICATORS}}<!--未完成业绩--></th>
                    <th>{{language.TIPS_INVENTORY_OPERATE}}<!--操作--></th>
                </tr>
                <tr ng-repeat="i in dianyuan_month_indicators|orderBy:'actual':'reverse'">
                    <td>{{$index + 1}}</td>
                    <td>{{i.user_name}}</td>
                    <td>{{i.month_indicators|number:2}}</td>
                    <td>{{i.actual|number:2}}</td>
                    <td>{{i.rate}}</td>
                    <td>{{i.unfinished|number:2}}</td>
                    <td><button ng-click="set_dialog('dianyuan_month_set');" >{{language.TIPS_SET}}<!--设置--></button></td>
                </tr>
            </table>
            <table ng-show="dianzhang == 1">
                <tr>
                    <th>{{language.TIPS_ANALYSIS_PROJECT}}<!--分析项目--></th>
                    <th>{{language.TIPS_PRESET_TARGET}}<!--预设指标--></th>
                    <th>{{language.TIPS_ACTUAL_INDICATORS}}<!--实际业绩--></th>
                    <th>{{language.TIPS_RATE}}<!--完成比例--></th>
                    <th>{{language.TIPS_UNFINISHED_INDICATORS}}<!--未完成业绩--></th>
                </tr>
                <tr>
                    <td>{{month}}月业绩</td>
                    <td>{{search_shop_month.indicators|number:2}}</td>
                    <td>{{search_shop_month.actual|number:2}}</td>
                    <td>{{search_shop_month.rate}}</td>
                    <td>{{search_shop_month.unfinished|number:2}}</td>
                </tr>
                <tr ng-repeat="i in search_shop_week track by $index">
                    <td>第{{$index + 1}}周业绩</td>
                    <td>{{i.indicators|number:2}}</td>
                    <td>{{i.actual|number:2}}</td>
                    <td>{{i.rate}}</td>
                    <td>{{i.unfinished|number:2}}</td>
                </tr>
            </table>
            <table ng-show="dianyuan == 1">
                <tr>
                    <th>{{language.TIPS_ANALYSIS_PROJECT}}<!--分析项目--></th>
                    <th>{{language.TIPS_CASHIER_SHOPPING_GUIDE}}<!--导购员--></th>
                    <th>{{language.TIPS_WEIGHT}}<!--权重--></th>
                    <th>{{language.TIPS_PRESET_TARGET}}<!--预设指标--></th>
                    <th>{{language.TIPS_ACTUAL_INDICATORS}}<!--实际业绩--></th>
                    <th>{{language.TIPS_RATE}}<!--完成比例--></th>
                    <th>{{language.TIPS_UNFINISHED_INDICATORS}}<!--未完成业绩--></th>
                </tr>
                <tr>
                    <td>{{language.TIPS_CURRENT_MONTH_INDICATORS}}<!--本月业绩--></td>
                    <td>{{dianyuan_month.dianyuan}}</td>
                    <td>{{dianyuan_month.weight}}</td>
                    <td>{{dianyuan_month.indicators|number:2}}</td>
                    <td>{{dianyuan_month.actual|number:2}}</td>
                    <td>{{dianyuan_month.rate}}</td>
                    <td>{{dianyuan_month.unfinished|number:2}}</td>
                </tr>
            </table>
            <table ng-show="dianyuan == 1">
                <tr>
                    <th>{{language.TIPS_REPORT_DATE}}<!--日期--></th>
                    <th>{{language.TIPS_CASHIER_SHOPPING_GUIDE}}<!--导购员--></th>
                    <th>{{language.TIPS_WEIGHT}}<!--权重--></th>
                    <th>{{language.TIPS_DAY_TARGET}}<!--日指标--></th>
                    <th>{{language.TIPS_DAY_INDICATORS}}<!--日业绩--></th>
                    <th>{{language.TIPS_RATE}}<!--完成比例--></th>
                    <th>{{language.TIPS_UNFINISHED_INDICATORS}}<!--未完成业绩--></th>
                </tr>
                <tr ng-repeat="i in dianyuan_every_day_indicators">
                    <td>{{i.date}}</td>
                    <td>{{i.dainyuan}}</td>
                    <td>{{i.weight}}</td>
                    <td>{{i.indicators|number:2}}</td>
                    <td>{{i.actual|number:2}}</td>
                    <td>{{i.rate}}</td>
                    <td>{{i.unfinished|number:2}}</td>
                </tr>
            </table>
        </div>
    </div>
</div>
